package com.example.demo.firstDemo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@ComponentScan
public class ConfigurationDemo {

    /**
     * spring 托管 bean
     * @return
     */
    @Bean
     public DemoClass demoClass(){
         return new DemoClass();
     }
}
